﻿using System;
using System.IO;
using System.Text;

namespace FtpWorkerRole.AzureStorage
{
    public interface IFile
    {
        MemoryStream File { get; set; }
        int Read(byte[] data);
        int Write(byte[] data, int size);
        void Close();
    }
    public interface IFileSystem
    {        
        IFile openFile(string path, bool download);
        void createDirectory(string path);

        string[] listFiles(string path);
        string[] listDirectories(string path);

        bool isFileExist(string path);
        bool isDirectoryExist(string path);
        bool put(string path, IFile file);
        bool delete(string path);
        bool deleteDirectory(string path);
    }
}
